package dale.web.common.model;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;

import dale.web.common.page.Pager;

public class PagedList<E> implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private List<E> list;
	
	private Pager pager;
	
	public PagedList(Pager pager, List<E> list) {
		this.pager = pager;
		this.list = list;
	}

	public Pager getPager() {
		return pager;
	}
	
	public List<E> getList() {
		return list;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
